package zz.extjs.vo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

public class Student {
	private String id;
	private String sid;
	private String cname;
	private String ename;
	private String kname;
	private int hasphoto;
	private int hasstucard;
	private String pass_id;		//证书编号
	private String pb_id;
	private String pb_type;		//用于签证号
	private String memo;		//用于图书证号
	private Date birthday;
	private Date pb_timeout;	//已废弃
	private Date pb_begin;		//签证起始时间
	private String pb_out;		//签证有效期（字符型数值）
	private String sex;
	private String iclass;
	private String course;	//课程
	private String study;   //专业
	private String pw;
	private List<JSONObject> children = new ArrayList<JSONObject>();
	//private Map  results= new HashMap();	//成绩数组
	public Student() {
	}
	public String getPb_type() {
		return pb_type;
	}
	public void setPb_type(String pb_type) {
		this.pb_type = pb_type;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Date getPb_begin() {
		return pb_begin;
	}
	public void setPb_begin(Date pb_begin) {
		this.pb_begin = pb_begin;
	}
	public String getPb_out() {
		return pb_out;
	}
	public void setPb_out(String pb_out) {
		this.pb_out = pb_out;
	}
	public Date getPbtimeout() {
		return pb_timeout;
	}
	public void setPbtimeout(Date pbtimeout) {
		this.pb_timeout = pbtimeout;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int isHasphoto() {
		return hasphoto;
	}
	public void setHasphoto(int hasphoto) {
		this.hasphoto = hasphoto;
	}
	public int isHasstucard() {
		return hasstucard;
	}
	public void setHasstucard(int hasstucard) {
		this.hasstucard = hasstucard;
	}
	public String getPass_id() {
		return pass_id;
	}
	public void setPass_id(String pass_id) {
		this.pass_id = pass_id;
	}
	public String getSid() {
		return sid;
	}
	public void setSid(String sid) {
		this.sid = sid;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public String getKname() {
		return kname;
	}
	public void setKname(String kname) {
		this.kname = kname;
	}
	public String getPb_id() {
		return pb_id;
	}
	public void setPb_id(String pb_id) {
		this.pb_id = pb_id;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getIclass() {
		return iclass;
	}
	public void setIclass(String iclass) {
		this.iclass = iclass;
	}
	public String getCourse() {
		return course;
	}
	public void setCourse(String course) {
		this.course = course;
	}
	public String getStudy() {
		return study;
	}
	public void setStudy(String study) {
		this.study = study;
	}
	public String getPw() {
		return pw;
	}
	public void setPw(String pw) {
		this.pw = pw;
	}
	public List<JSONObject> getResults() {
		return this.children;
	}
	public void setResults(List<JSONObject> scopes) {
		this.children = scopes;
	}
	public void addResult(String subname,String result) throws JSONException {
		//Scope scope = new Scope();
		//scope.name = subname;
		//scope.result = result;
		String str = "{\"subname\":\""+subname+"\",\"result\":\""+result+"\"}";
		JSONObject scope1;
			scope1 = new JSONObject(str);
			this.children.add(scope1);
	}
}
